package com.ykyl.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ykyl.base.BaseVo;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 老人实体类
 */
@Data
@NoArgsConstructor
public class ElderVo extends BaseVo {

    /**
     * 姓名
     */
    private String name;

    /**
     * 头像
     */
    private String image;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 身份证号
     */
    private String idCardNo;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 欠费金额
     */
    private BigDecimal arrearsAmount;

    /**
     * 支付截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime paymentDeadline;



    @Builder
    public ElderVo(Long id, String dataState, String name, String image, Integer status, String idCardNo, String phone, BigDecimal arrearsAmount, LocalDateTime paymentDeadline) {
        super(id, dataState);
        this.name = name;
        this.image = image;
        this.status = status;
        this.idCardNo = idCardNo;
        this.phone = phone;
        this.arrearsAmount = arrearsAmount;
        this.paymentDeadline = paymentDeadline;
    }





    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public BigDecimal getArrearsAmount() {
        return arrearsAmount;
    }

    public void setArrearsAmount(BigDecimal arrearsAmount) {
        this.arrearsAmount = arrearsAmount;
    }

    public LocalDateTime getPaymentDeadline() {
        return paymentDeadline;
    }

    public void setPaymentDeadline(LocalDateTime paymentDeadline) {
        this.paymentDeadline = paymentDeadline;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}


